import { useRoutes } from 'react-router-dom'
import { Suspense } from 'react'
import routes from './routes'

const RouterView = () => useRoutes(routes)
const Router = () => {
  return (
    <Suspense>
      <RouterView></RouterView>
    </Suspense>  
  )
}

export default Router